package com.czxy.controller;


import com.czxy.domain.ProductVo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

    @RequestMapping("/show01.action")
    public  String  show01(Integer id , Model model){
        System.out.println("前端发送的数据是: ="+id);
        model.addAttribute("data",id);
        return "/show.jsp";

    }



    @RequestMapping("/show04.action")
    public  String  show04(ProductVo vo, Model model){
        System.out.println("前端发送的数据是: vo="+vo);
        model.addAttribute("data",vo);
        return "/show.jsp";

    }
}


